home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / modula2 / 219 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.9 KB

  1. Path: bradford.ac.uk!strath-cs!selliott
  2. From: selliott@cs.strath.ac.uk (Stuart Elliott CES92)
  3. Newsgroups: comp.lang.modula2
  4. Subject: Assembler + Modula-2 HOW ?
  5. Date: 1 Feb 1996 10:45:21 GMT
  6. Organization: Computer Science Dept., Strathclyde University., Glasgow, Scotland.
  7. Distribution: world
  8. Message-ID: <4eq5k2$34u@dunlop.cs.strath.ac.uk>
  9. NNTP-Posting-Host: fleming-09.cs.strath.ac.uk
  10.  
  11. Hi,
  12.  
  13.     I have a problem using the (shareware) Fitted Technologies
  14. Modula-2 compiler and I was wondering if anyone in here could help.
  15.  
  16.     I've already checked the FAQ as well as several books, all
  17. without success.
  18.  
  19.     I should also state that this is my first Modula-2 program
  20. and have had to fight to be allowed to use this language. So, please
  21. folks, don't let me down.  ;-)
  22.  
  23.     I need to include some DSP assembly language into my Modula-2
  24. program. So far I've discovered that I need to use a "code" statement
  25. for each assembly language opcode, e.g. CODE(57).
  26.  
  27.     However, when this was put into the program, the compiler seemed
  28. to accept the command word "CODE" but then barfed at the "5", giving an
  29. "unknown id" error message.
  30.  
  31.     I really need the following questions answered.
  32.  
  33.     1. Is it possible to include non-Intel opcodes in a Modula-2
  34.        program that is being compiled on a standard Intel-based PC ?
  35.  
  36.     2. If so, do I put the assembly opcodes into a separate module ?
  37.  
  38.     3. How do I "transfer" control to the assembly opcodes, let them
  39.        run to conclusion and then return control back to the Modula-2
  40.        program ?
  41.  
  42.        e.g. do I use TRANSFER/IOTRANSFER, NEWPROCESS/PROCESS ... ?
  43.  
  44.     As I stated previously, all that I could uncover so far was that
  45. it was necessary to use the "CODE" instruction. However, that was shown
  46. using Intel opcodes.
  47.  
  48.     If anyone can offer some answers to these problems could they please
  49. reply to :-
  50.  
  51.     selliott@cs.strath.ac.uk
  52.  
  53.     Thanks very much in advance for any help given.
  54.  
  55. Stuart
  56.